package com.tsll.dao;

import com.tsll.entity.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 13142
* @description 针对表【menu】的数据库操作Mapper
* @createDate 2024-03-18 18:46:35
* @Entity com.tsll.entity.Menu
*/
public interface MenuMapper {
    public List<Menu> selectAll(Integer staffId);

    int insert(Menu record);

    int batchInsert(@Param("roleId") Integer roleId, @Param("menuIds") Integer[] menuIds);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);

    List<Menu> selectAll02();

    List<Integer> selectMid(Integer roleId);

    int deleteByRoleId(Integer roleId);

}

